//*************************************************************************************
// EGTB Generator Main Building Module
//*************************************************************************************

#include "Stdafx.h"
#include "EndGameDb.h"

namespace EndGameDB
{
	// ID of log file
	int iGeneratorLog = -1;

	
	// progress callback function pointers
	void (*OnBuildSubDbStartedPtr)(int wm, int wk, int bm, int bk, int wmrank, int bmrank) = NULL;
	
	void (*ProgressMessagePtr)(wchar_t* sMessage) =	NULL;
	void (*PercentProgress)(int percent) = NULL;
	void (*ProcessStartedPtr)(wchar_t* sProcessName) = NULL;


	// global EngineData structure for bitboard move generator
	SEngineData* g_ED = NULL;


	// message printing routine
	wchar_t MSG[1000];

	void PrintMessage(wchar_t *sMessage)
	{
		if(ProgressMessagePtr != NULL)
		{
			ProgressMessagePtr(sMessage);
		}
	}




}
